﻿namespace Skymate.Modules
{
    using System;
    using System.Collections.Generic;
    using System.Linq;

    using Skymate.Core;

    internal class DefaultModuleFinder : IModuleFinder
    {
        private readonly ITypeFinder _typeFinder;

        public DefaultModuleFinder(ITypeFinder typeFinder)
        {
            this._typeFinder = typeFinder;
        }

        public ICollection<Type> FindAll()
        {
            
            return _typeFinder.Find(AbpModule.IsAbpModule).ToList();
        }
    }
}